import request from '@/utils/request'

// 搜索打卡记录
export function searchPunchRecords(params) {
  return request({
    url: '/punches/search',
    method: 'get',
    params
  })
}

// 记录打卡
export function recordPunch(data) {
  return request({
    url: '/punches/record',
    method: 'post',
    data
  })
}